<?php
$arrayOfSelectedAttributes = array();
if ($_GET['amount_harvested'] == 'on') {
    $arrayOfSelectedAttributes[] = 'amount_harvested';
}
if ($_GET['amount_donated'] == 'on') {
    $arrayOfSelectedAttributes[] = 'amount_donated';
}
if ($_GET['sales'] == 'on') {
    $arrayOfSelectedAttributes[] = 'sales';
}
if ($_GET['number_planted'] == 'on') {
    $arrayOfSelectedAttributes[] = 'number_planted';
}
if ($_GET['seeds_bought'] == 'on') {
    $arrayOfSelectedAttributes[] = 'seeds_bought';
}
if ($_GET['pest_issues'] == 'on') {
    $arrayOfSelectedAttributes[] = 'pest_issues';
}
if ($_GET['weed_issues'] == 'on') {
    $arrayOfSelectedAttributes[] = 'weed_issues';
}
?>